<template>
<div class="layout-page">
  <!-- 二级路由出口 -->
  <router-view></router-view>
<!-- 添加route开启路由模式 -->
  <van-tabbar route>
  <van-tabbar-item icon="wap-home-o" to='/index'>首页</van-tabbar-item>
  <van-tabbar-item icon="search" to='/find'>找房</van-tabbar-item>
  <van-tabbar-item icon="newspaper-o" to='/news'>咨询</van-tabbar-item>
  <van-tabbar-item icon="user-o" to='/my'>我的</van-tabbar-item>
</van-tabbar>

</div>
</template>

<script>
export default {
  name: 'layout-page',
  data () {
    return {

    }
  }

}
</script>

<style>

</style>
